package cn.lutu.protocol.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("t_article")
public class Article {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long contentId;
    private Long userId;
    private String title;
    private String brief;
    private String ip;
    private String imgUrl;
    private String videoUrl;
    private Integer commentCount;
    private Integer collectCount;
    private Integer upCount;
    private Integer viewCount;
    private Long articleCategoryId;
    private Integer checkState;
    private String checkRemarks;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yy/MM/dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yy/MM/dd HH:mm:ss")
    private LocalDateTime updateTime;
    private Integer sort;
}
